package org.xeustechnologies.jcksum.algo;

import org.xeustechnologies.jcksum.AbstractChecksum;

public class Xor8 extends AbstractChecksum {
    private int xor = 0;

    @Override
    public long getValue() {
        return xor;
    }

    @Override
    public void reset() {
        xor = 0;
    }

    @Override
    public void update(int b) {
        xor ^= (byte) b;
    }
}
